package com.upay.android.util.exception;


/**
 * Validation exception which indicates that an object is found invalid.
 *
 * @author dijksvi
 */
public class RestException extends RuntimeException {

    /* ---- Constants ---- */
    private static final long serialVersionUID = 200805201315L;

    /* ---- Instance Variables ---- */
    private RestExceptionType restExceptionType = null;
    private String message = null;

    /* ---- Constructors ---- */
    
    public RestException(RestExceptionType restExceptionType, String message) {
    	this.restExceptionType = restExceptionType;
    	this.message = message;
    }

    /* ---- Business Methods ---- */

    
    /* ---- Getters and Setters ---- */


	public RestExceptionType getRestExceptionType() {
		return restExceptionType;
	}

	public void setRestExceptionType(RestExceptionType restExceptionType) {
		this.restExceptionType = restExceptionType;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
    
}
